package com.dragon.mmochat.model;

public class MmochatRolePayInfo {
	private int roleId;
	private long skyId;
	private String name;
	private int total_pay;
	private int awardTimes = 0; // 抽奖次数，内存中

	public int getRoleId() {
		return roleId;
	}

	public void setRoleId(int roleId) {
		this.roleId = roleId;
	}

	public long getSkyId() {
		return skyId;
	}

	public void setSkyId(long skyId) {
		this.skyId = skyId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getTotal_pay() {
		return total_pay;
	}

	public void setTotal_pay(int totalPay) {
		total_pay = totalPay;
	}

	public int getAwardTimes() {
		return awardTimes;
	}

	public void setAwardTimes(int awardTimes) {
		this.awardTimes = awardTimes;
	}
	
	public void delAwardTimes(int del){
		awardTimes -= del;
		awardTimes = Math.max(0, awardTimes);
	}

	public void initAwardTimes(int initValue) {
		awardTimes = initValue;
	}

}
